#include<iostream>
#include<stdlib.h>

class Test
{
    public:
    Test()
    {

    std::cout<<"无参构造函数\n"<<std::endl;

    }
    ~Test()
    {
    std::cout<<"析构函数\n"<<std::endl;
    }


};


int main()
{

    // Test*t=new Test;
    // delete t;
    // Test *t=(Test*)malloc(sizeof(Test));
    // free(t);
    // printf("111111\n");
    // Test b;
    Test*t=new Test[3];
    delete[]t;

    return 0;
}